<?php

  require("goodsreceipt.inc");
  $gr = new GoodsReceipt();
  $result = $gr->retrieveSuppliers($_GET['term']);

  echo json_encode(array_values(array_unique(mysql_fetch_array($result))));

?>